package cn.tedu.knows.kafka;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.kafka.annotation.EnableKafka;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
// 启动Kafka的支持
@EnableKafka
// 下面注解表示启动Spring的定时任务功能
// 它能够在指定时间或指定间隔运行或调用设置好的方法
@EnableScheduling
public class KnowsKafkaApplication {

    public static void main(String[] args) {
        SpringApplication.run(KnowsKafkaApplication.class, args);
    }

}
